import { axios } from '@/service/service'
export function getFullNameReq(params: any): any {
  return axios({
    url: '/api-user/department/fullName',
    method: 'get',
    params
  })
}
export function getDepartmentTreeReq(): any {
  return axios({
    url: '/api-user/department/findAll',
    method: 'get'
  })
}
export function delDepartmentReq(id: number): any {
  return axios({
    url: `/api-user/department/delete/${id}`,
    method: 'get'
  })
}

export function addDepartmentReq(data: any): any {
  return axios({
    url: '/api-user/department/create',
    method: 'post',
    data
  })
}

export function editDepartmentReq(params: any): any {
  return axios({
    url: '/api-user/department/editName',
    method: 'get',
    params
  })
}
